<div class="content">
	
	<div class="n-tools">
	<?php
	$tools = array();
	//$tools[] = n_ui(n_url('pbox','edit'),'注册',"class='n-href n-btn n-btn-ccc'");
	//$tools[] = n_href(n_url('pbox','fff'),'禁词',"class='n-href n-btn n-btn-ccc'");
	echo n_mod('skin')->pageHead("存储服务器",$tools)
	?>
	</div>


	<table class="n-table n-size-full">
		<tbody>
			
		<tr>
			<th>ID</th>
			<th>MIME</th>
			<th>文件名</th>
			<th>尺寸</th>
			<th>上传时间</th>
			<th>操作</th>
		</tr>
		<?php
		if(!empty($data['data'])){
		foreach($data['data'] as $key=>$val){
		?>
		<tr>
			<td><?=$val['id']?></td>
			<td><?=$val['type']?>/<?=$val['subtype']?></td>
			<td><?=$val['name'].'.'.$val['ext']?></td>
			<td><?=$val['size']?></td>
			<td><?=date('Y-m-d H:i:s',$val['ctime'])?></td>
			<td>
				<?=n_ui(n_url('nfile','fileDel',array("id"=>$val['id'])),'删除',"class='n-href'")?>
				<?=n_ui(n_url('nfile','fileEdit',array("id"=>$val['id'])),'修改',"class='n-href'")?>
			</td>
		</tr>
		
		<?php
		}
		}else{
		?>
		<tr>
			<td colspan="6">暂无文件</td>
		</tr>
		<?php
		}
		?>
		</tbody>
	</table>	
	
	<div class="n-paging"><?=$data['paging']?></div>
</div>